package com.olinsports.system.olinsportssystem.repository;

import com.olinsports.system.olinsportssystem.model.Activity;
import com.olinsports.system.olinsportssystem.model.CommodityDetailed;
import com.olinsports.system.olinsportssystem.model.MultiCondition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * Created by Administrator on 2017/7/22.
 */
@Mapper
@CacheConfig(cacheNames = "activity")
public interface ActivityRepository {
    @Cacheable
    public List<Activity> selectAll();
    @Cacheable
    public int insertAll(Activity activity);
    @Cacheable
    public int deleteByKey(int actKey);
    @Cacheable
    public int updateData(Activity activity);
    @Cacheable
    public Activity selectByKey(int actKey);
    @Cacheable
    public int findCount();
    @Cacheable
    public List<Activity> findLimit(@Param("sord") String sord, @Param("sidx") String sidx, @Param("beg") int beg, @Param("end") int end);

}
